<%-- 
    Document   : setting
    Created on : Jun 26, 2012, 9:43:56 AM
    Author     : VANANH
--%>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
<%@taglib prefix="rich" uri="http://richfaces.org/rich" %>
<%@taglib prefix="a4j" uri="http://richfaces.org/a4j" %>
<!DOCTYPE html>
<html>
    <head>
        <script type="text/javascript" language="javascript" src="../scripts/jQuery/thickbox.js"></script>
        <link rel="stylesheet" type="text/css" href="../css/thickbox.css"/>
        <script type="text/javascript" language="javascript" src="../scripts/jQuery/jquery.fancybox-1.3.4.pack.js"></script> 
        <link rel="stylesheet" type="text/css" href="../css/permissionUser.css"/>
    </head>
    <script type="text/javascript">
        $j(document).ready(function(){
            initThickBox('.thickbox');
            $j('.addmenu').live('click',function(){
                $j.post('actionmenusetting.jsp?<c:out value='${kapiMenu.md5url}'/>&type=1',function(data){
                    if(data!=null){
                        window.location.href="setting.jsp?<c:out value='${kapiMenu.md5url}'/>";
                    } 
                });
                
            });
            $j('.addmenu1').live('click',function(){
                $j.post('actionmenusetting.jsp?<c:out value='${kapiMenu.md5url}'/>&type=2',function(data){
                    if(data!=null){
                        window.location.href="setting.jsp?<c:out value='${kapiMenu.md5url}'/>";
                    }
                });
               
            });
            $j('.addmenu2').live('click',function(){
                $j.post('actionmenusetting.jsp?<c:out value='${kapiMenu.md5url}'/>&type=3',function(data){
                    if(data!=null){
                        window.location.href="setting.jsp?<c:out value='${kapiMenu.md5url}'/>";
                    } 
                });
                
            });
            $j('.addmenu3').live('click',function(){
            
                $j.post('actionmenusetting.jsp?<c:out value='${kapiMenu.md5url}'/>&type=5',function(data){
                    if(data!=null){
                        window.location.href="setting.jsp?<c:out value='${kapiMenu.md5url}'/>";
                    }
                });
               
            });
            
             $j('.addmenu4').live('click',function(){
            
                $j.post('actionmenusetting.jsp?<c:out value='${kapiMenu.md5url}'/>&type=6',function(data){
                    if(data!=null){
                        window.location.href="setting.jsp?<c:out value='${kapiMenu.md5url}'/>";
                    }
                });
               
            });
            
           
            
            
        });
    </script>
    <script type="text/javascript" language="javascript">

        $j(document).ready(function(){    
            $j('.header').live('click',function(){                                    
                $j('.header-item').slideUp();  
                $j('.header-item').html('');
                // alert($j(this).next().attr('class'));
                if($j(this).next().hasClass('active')){
                
                    $j('.header-item').removeClass('active');
                }else{

                    $j('.header-item').removeClass('active');
                    $j(this).next().addClass('active');
                    //$j(this).next().slideToggle();
                    object = $j(this).next();
                    file = $j(this).attr('lang');
                    $j.post(file,function(data){
                        if(data!=null)
                        {
                            object.html(data);
                            object.slideDown();
                        }
                    });
                }

                    
            });
       
            slide = gup( 'tab' );
            if(slide != null && slide !=undefined && slide.length > 0){
               
                //$j('.'+tab).parent().parent().parent().parent().parent('.tabs_menu').css('display','block');
                $j('.'+slide).trigger('click') ;

            }
        
        });

    </script>
    <style>
        .addmenu{
            background-color: #303C49;
            margin-left: 3px;
            width: 98%;
            cursor: pointer;
            margin-top: 5px; 
            height: 45px;
            line-height: 45px;
            text-align: left;
            margin-bottom: 5px;

            /*            background-image: -moz-linear-gradient(19% 75% 90deg, #7C94AA, #3D4954);
                        background-image:-webkit-gradient(linear, 0 0%, 0 100%, from(#7C94AA), to(#3D4954));*/
        }

        .addmenu1{
            background-color: #303C49;
            margin-left: 3px;
            width: 98%;
            cursor: pointer;
            margin-top: 5px; 
            height: 45px;
            line-height: 45px;
            text-align: left;
            margin-bottom: 5px;

            /*            background-image: -moz-linear-gradient(19% 75% 90deg, #7C94AA, #3D4954);
                        background-image:-webkit-gradient(linear, 0 0%, 0 100%, from(#7C94AA), to(#3D4954));*/
        }
        #main{
            width: 100%;
            
        }
        #content{
            width: 98%;
            padding: 0;
            margin-left: 1%;
        }
        #footer{
            width: 100%;
        }
        .addmenu2{
            background-color: #303C49;
            margin-left: 3px;
            width: 98%;
            cursor: pointer;
            margin-top: 5px; 
            height: 45px;
            line-height: 45px;
            text-align: left;
            margin-bottom: 5px;

            /*            background-image: -moz-linear-gradient(19% 75% 90deg, #7C94AA, #3D4954);
                        background-image:-webkit-gradient(linear, 0 0%, 0 100%, from(#7C94AA), to(#3D4954));*/
        }
        .addmenu3{
            margin-left: 3px;
            width: 98%;
            cursor: pointer;
            margin-top: 5px; 
            background-color: #303C49;
            height: 45px;
            line-height: 45px;
            text-align: left;
            margin-bottom: 5px;

            /*            background-image: -moz-linear-gradient(19% 75% 90deg, #7C94AA, #3D4954);
                        background-image:-webkit-gradient(linear, 0 0%, 0 100%, from(#7C94AA), to(#3D4954));*/
        }
        
         .addmenu4{
            margin-left: 3px;
            width: 98%;
            cursor: pointer;
            margin-top: 5px; 
            background-color: #303C49;
            height: 45px;
            line-height: 45px;
            text-align: left;
            margin-bottom: 5px;

            /*            background-image: -moz-linear-gradient(19% 75% 90deg, #7C94AA, #3D4954);
                        background-image:-webkit-gradient(linear, 0 0%, 0 100%, from(#7C94AA), to(#3D4954));*/
        }

    </style>
    <body>
        <f:loadBundle basename="#{environmentSession.localizationSource}" var="locale"/>
        <h:outputText value="<div class='permission' lang='#{loginSession.right.MENU_ADM_VIEW}'></div>" escape="false"/>
        <f:view>


            <a4j:form id="main">

                <div id="content">
                    <div id="menu_top">
                        <div class="dropdown">
                            <div class="select_choise">
                                <a href="#"><span><h:outputText value="Khu vực"/></span></a>
                            </div>
                            <div class="select_hidden">
                                <ul>
                                    <li><a href="#"><span>Filter Cấp 3</span></a></li>
                                    <li><a href="#"><span>Filter Cấp 3</span></a></li>
                                    <li><a href="#"><span>Filter Cấp 3</span></a></li>
                                </ul>
                            </div>
                        </div>
                        <div class="dropdown">
                            <div class="select_choise">
                                <a href="#"><span>Outlets</span></a>
                            </div>
                            <div class="select_hidden">
                                <ul>
                                    <li><a href="#"><span>Ban Điều Hành</span></a></li>
                                    <li><a href="#"><span>Nhóm IT</span></a></li>
                                    <li><a href="#"><span>Filter Cấp 3</span></a></li>
                                </ul>
                            </div>
                        </div>
                    </div>

                    <div id="content_detail">

                        <div class="content" >
                           
                            <div style="margin-right: 20px;width: 23%;float: left;">
                                <div class="addmenu" >
                                    <span style="margin-left: 5px;color: white;"> QUẢN LÝ CÔNG TY</span>
                                </div>
                                <div class="addmenu1" >
                                    <span style="margin-left: 5px;color: white;"> QUẢN LÝ KHÁCH HÀNG</span>
                                </div>
                                <div class="addmenu2" >
                                    <span style="margin-left: 5px;color: white;"> QUẢN LÝ DỰ ÁN</span>
                                </div>
                                <div class="addmenu3" >
                                    <span style="margin-left: 5px;color: white;"> QUY TRÌNH TOUR</span>
                                </div>
                                <div class="addmenu4" >
                                    <span style="margin-left: 5px;color: white;"> TEMPLATE SMS</span>
                                </div>
                                <%--<div class="addmenu3" >
                                     <span style="margin-left: 5px;color: white;"> QUẢN LÝ NCC - ĐỐI TÁC</span>
                                 </div>--%>
                            </div>
                            <div class="contact" style="width: 74%;float: left;margin-top: 0.4%;">
                                <%-- Danh sach Ly do nghi phep --%>
                                <h:panelGroup rendered="#{menuSettingController.tip ==1}">
                                    <div class="list_content comment-content" style="margin-top: 4px !important;">
                                        <div class="header header14" lang="N450.jsp"> <label>  <h:outputText styleClass="more1" value="Bộ phận" /></label></div>
                                        <div class="header-item" style="display: none;">

                                        </div>
                                    </div>
                                </h:panelGroup>
                                <%-- Phong Ban --%>
                                <h:panelGroup rendered="#{menuSettingController.tip ==1}">
                                    <div class="list_content comment-content">
                                        <div lang="department.jsp" class="header header1"> <label><span class="more1"><h:outputText value="#{locale.department}"/></span></label></div>
                                        <div class="header-item" style="<h:outputText value="#{groupController.active}"/>">

                                        </div>
                                    </div>
                                </h:panelGroup>
                                
                                 <%-- EMAIL Phong Ban --%>
                                <h:panelGroup rendered="#{menuSettingController.tip ==1}">
                                    <div class="list_content comment-content">
                                        <div lang="emaildepartment.jsp" class="header header111"> <label><span class="more1"><h:outputText value="Email phòng ban"/></span></label></div>
                                        <div class="header-item" style="<h:outputText value="#{groupController.active}"/>">

                                        </div>
                                    </div>
                                </h:panelGroup>
                                
                                <h:panelGroup rendered="#{menuSettingController.tip ==1}">
                                    <div class="list_content comment-content">
                                        <div lang="team.jsp" class="header header99"> <label><span class="more1"><h:outputText value="Team"/></span></label></div>
                                        <div class="header-item" style="<h:outputText value="#{groupController.active}"/>">

                                        </div>
                                    </div>
                                </h:panelGroup>
                                <%-- Danh sach Chức vụ --%>
                                <h:panelGroup rendered="#{menuSettingController.tip ==1}">
                                    <div class="list_content comment-content">
                                        <div class="header header15" lang="N250.jsp"> <label>  <h:outputText styleClass="more1" value="Chức vụ" /></label></div>
                                        <div class="header-item" style="display: none;">

                                        </div>
                                    </div>
                                </h:panelGroup>
                                <%-- Danh sach ngay nghi phep --%>
                                <h:panelGroup rendered="#{menuSettingController.tip ==1}">
                                    <div class="list_content comment-content">
                                        <div class="header header13" lang="C050.jsp"> <label>  <h:outputText styleClass="more1" value="Ngày lễ trong năm" /></label></div>
                                        <div class="header-item" style="display: none;">

                                        </div>
                                    </div>
                                </h:panelGroup>
                                <%-- Danh sach Ly do nghi phep --%>
                                <h:panelGroup rendered="#{menuSettingController.tip ==1}">

                                    <div class="list_content comment-content">
                                        <div class="header header12" lang="N000.jsp"> <label>  <h:outputText styleClass="more1" value="Lý do nghỉ phép" /></label></div>
                                        <div class="header-item" style="display: none;">

                                        </div>
                                    </div>
                                </h:panelGroup>
                                <%-- Danh sach Staus--%>
                                <h:panelGroup rendered="#{menuSettingController.tip ==1}">
                                    <div class="list_content comment-content">
                                        <div class="header header21" lang="F000.jsp"> <label>  <h:outputText styleClass="more1" value="Thư mục tài liệu" /></label></div>
                                        <div class="header-item" style="display: none;">

                                        </div>
                                    </div>
                                </h:panelGroup>
                                <%-- Nghanh Nghe --%>
                                <h:panelGroup rendered="#{menuSettingController.tip ==2}">
                                    <div class="list_content comment-content" style="margin-top: 4px !important">
                                        <div class="header header2" lang="career.jsp"> <label>  <h:outputText styleClass="more1" value="#{locale.career}" /></label></div>
                                        <div class="header-item" style="display: none;">

                                        </div>
                                    </div>
                                </h:panelGroup>
                                <%-- Khach Hang --%>
                                <h:panelGroup rendered="#{menuSettingController.tip ==2}">
                                    <div class="list_content comment-content">
                                        <div class="header header3" lang="customerGroup.jsp"> <label>  <h:outputText styleClass="more1" value="#{locale.customer_group}" /></label></div>
                                        <div class="header-item" style="display: none;">

                                        </div>
                                    </div>
                                </h:panelGroup>
                                <%-- Cham Soc Khach Hang --%>
                                <h:panelGroup rendered="#{menuSettingController.tip ==2}">
                                    <div class="list_content comment-content">
                                        <div class="header header4" lang="careCustomer.jsp"> <label>  <h:outputText styleClass="more1" value="Hạn mục chăm sóc khách hàng" /></label></div>
                                        <div class="header-item" style="display: none;">

                                        </div>
                                    </div>
                                </h:panelGroup>
                                <%-- Hạng mục items --%>
                                <h:panelGroup rendered="#{menuSettingController.tip ==1}">
                                    <div class="list_content comment-content">
                                        <div class="header header5" lang="items.jsp"> <label>  <h:outputText styleClass="more1" value="#{locale.itemss} (Chiết tính)" /></label></div>
                                        <div class="header-item" style="display: none;">

                                        </div>
                                    </div>
                                </h:panelGroup>
                                <%-- MÃ SỐ TOUR 
                                <h:panelGroup rendered="#{menuSettingController.tip ==2}">
                                    <div class="list_content comment-content">

                                        <div class="header header6" lang="codeTour.jsp"> <label>  <h:outputText styleClass="more1" value="#{locale.code_tour}" /></label></div>
                                        <div class="header-item" style="display: none;">

                                        </div>
                                    </div>
                                </h:panelGroup>--%>

                                <h:panelGroup rendered="#{menuSettingController.tip ==1}">
                                    <div class="list_content comment-content">
                                        <div class="header header7" lang="codeWork.jsp"> <label>  <h:outputText styleClass="more1" value="Chuyên môn" /></label></div>
                                        <div class="header-item" style="display: none;">

                                        </div>
                                    </div>
                                </h:panelGroup>

                                <%-- MÃ SỐ CONG VIEC --%>
                                <h:panelGroup rendered="#{menuSettingController.tip ==3}">
                                    <div class="list_content comment-content" style="margin-top: 4px !important">
                                        <div class="header header8" lang="criteriaWork.jsp"> <label>  <h:outputText styleClass="more1" value="#{locale.criteria_work}" /></label></div>
                                        <div class="header-item" style="display: none;">

                                        </div>
                                    </div>
                                </h:panelGroup>
                                <%-- Danh sach Dự Án --%>
                                <h:panelGroup rendered="#{menuSettingController.tip ==3}">
                                    <div class="list_content comment-content">
                                        <div class="header header9" lang="managerProject.jsp"> <label>  <h:outputText styleClass="more1" value="Dự án" /></label></div>
                                        <div class="header-item" style="display: none;">

                                        </div>
                                    </div>
                                </h:panelGroup>











                                <%-- Danh sach Dịch vụ --%>
                                <h:panelGroup rendered="#{menuSettingController.tip ==1}">
                                    <div class="list_content comment-content">
                                        <div class="header header17" lang="service.jsp"> <label>  <h:outputText styleClass="more1" value="Dịch vụ" /></label></div>
                                        <div class="header-item" style="display: none;">

                                        </div>
                                    </div>

                                </h:panelGroup>
                                <%-- Danh sach Thành phố--%>
                                <h:panelGroup rendered="#{menuSettingController.tip ==1}">
                                    <div class="list_content comment-content">
                                        <div class="header header18" lang="city.jsp"> <label>  <h:outputText styleClass="more1" value="Tỉnh/ TP" /></label></div>
                                        <div class="header-item" style="display: none;">

                                        </div>
                                    </div>
                                </h:panelGroup>
                                <%-- Danh sach Thông tin tiếp xúc--%>
                                <h:panelGroup rendered="#{menuSettingController.tip ==2}">
                                    <div class="list_content comment-content">
                                        <div class="header header19" lang="K300.jsp"> <label>  <h:outputText styleClass="more1" value="Nguồn thông tin" /></label></div>
                                        <div class="header-item" style="display: none;">

                                        </div>
                                    </div>
                                </h:panelGroup>
                                <%-- Danh sach Staus--%>
                                <h:panelGroup rendered="#{menuSettingController.tip ==2}">
                                    <div class="list_content comment-content">
                                        <div class="header header20" lang="K330.jsp"> <label>  <h:outputText styleClass="more1" value="Trạng thái" /></label></div>
                                        <div class="header-item" style="display: none;">

                                        </div>
                                    </div>
                                </h:panelGroup>

                                <%-- Danh sach mailtemplate--%>
                                <h:panelGroup rendered="#{menuSettingController.tip ==2}">
                                    <div class="list_content comment-content">
                                        <div class="header header21" lang="M200.jsp"> <label>  <h:outputText styleClass="more1" value="Mẫu Email" /></label></div>
                                        <div class="header-item" style="display: none;">

                                        </div>
                                    </div>
                                </h:panelGroup>
                                
                                  <%-- Danh sach mailtemplate--%>
                                <h:panelGroup rendered="#{menuSettingController.tip ==2}">
                                    <div class="list_content comment-content">
                                        <div class="header header22" lang="relations.jsp"> <label>  <h:outputText styleClass="more1" value="Quan hệ" /></label></div>
                                        <div class="header-item" style="display: none;">

                                        </div>
                                    </div>
                                </h:panelGroup>
                                
                              
                                
                                 <%-- Danh sach mailtemplate--%>
                                <h:panelGroup rendered="#{menuSettingController.tip ==5}">
                                    <div class="list_content comment-content">
                                        <div class="header header31" lang="C350.jsp"> <label>  <h:outputText styleClass="more1" value="Kiểm tra công việc" /></label></div>
                                        <div class="header-item" style="display: none;">

                                        </div>
                                    </div>
                                </h:panelGroup>
                                
                                
                                 <%-- Danh sach mailtemplate--%>
                                <h:panelGroup rendered="#{menuSettingController.tip ==5}">
                                    <div class="list_content comment-content">
                                        <div class="header header32" lang="C425.jsp"> <label>  <h:outputText styleClass="more1" value="Công việc" /></label></div>
                                        <div class="header-item" style="display: none;">

                                        </div>
                                    </div>
                                </h:panelGroup>
                                
                                
                                 <%-- Danh sach mailtemplate--%>
                                <h:panelGroup rendered="#{menuSettingController.tip ==5}">
                                    <div class="list_content comment-content">
                                        <div class="header header33" lang="C475.jsp"> <label>  <h:outputText styleClass="more1" value="Tên quy trình" /></label></div>
                                        <div class="header-item" style="display: none;">

                                        </div>
                                    </div>
                                </h:panelGroup>
                                
                                
                                 <%-- Danh sach mailtemplate--%>
                                <h:panelGroup rendered="#{menuSettingController.tip ==5}">
                                    <div class="list_content comment-content">
                                        <div class="header header34" lang="C525.jsp"> <label>  <h:outputText styleClass="more1" value="Quy trình áp dụng" /></label></div>
                                        <div class="header-item" style="display: none;">

                                        </div>
                                    </div>
                                </h:panelGroup>
                                 <h:panelGroup rendered="#{menuSettingController.tip ==6}">
                                    <div class="list_content comment-content">
                                        <div class="header header36" lang="M000.jsp"> <label>  <h:outputText styleClass="more1" value="Template SMS" /></label></div>
                                        <div class="header-item" style="display: none;">

                                        </div>
                                    </div>
                                </h:panelGroup>
                                <h:panelGroup rendered="#{menuSettingController.tip ==6}">
                                    <div class="list_content comment-content">
                                        <div class="header header37" lang="M010.jsp"> <label>  <h:outputText styleClass="more1" value="Mẫu SMS đã tạo" /></label></div>
                                        <div class="header-item" style="display: none;">

                                        </div>
                                    </div>
                                </h:panelGroup>
                                


                            </div>
                        </div>

                    </div>
                </div>
                <rich:modalPanel id="ajaxLoadingModalBox" minHeight="30" minWidth="40"
                                 height="30" width="40" zindex="2000">
                    <h:outputText value="Please wait" styleClass="startDummer"></h:outputText>
                </rich:modalPanel>
            </a4j:form>
        </f:view>

    </body>
</html>
<script type="text/javascript">
    $j(document).ready(function(){
        yhight = ($j('.popup').height()-90)+"px" ;
        $j('.main_content').css('height',yhight );
        $j('.popup-content').css('height',yhight );
    });
</script>
